package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InfoUploadMapper;
import com.ruoyi.system.domain.InfoUpload;
import com.ruoyi.system.service.IInfoUploadService;

/**
 * 信息上传Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-01
 */
@Service
public class InfoUploadServiceImpl implements IInfoUploadService 
{
    @Autowired
    private InfoUploadMapper infoUploadMapper;

    /**
     * 查询信息上传
     * 
     * @param id 信息上传主键
     * @return 信息上传
     */
    @Override
    public InfoUpload selectInfoUploadById(Long id)
    {
        return infoUploadMapper.selectInfoUploadById(id);
    }

    /**
     * 查询信息上传列表
     * 
     * @param infoUpload 信息上传
     * @return 信息上传
     */
    @Override
    public List<InfoUpload> selectInfoUploadList(InfoUpload infoUpload)
    {
        return infoUploadMapper.selectInfoUploadList(infoUpload);
    }

    /**
     * 新增信息上传
     * 
     * @param infoUpload 信息上传
     * @return 结果
     */
    @Override
    public int insertInfoUpload(InfoUpload infoUpload)
    {
        return infoUploadMapper.insertInfoUpload(infoUpload);
    }

    /**
     * 修改信息上传
     * 
     * @param infoUpload 信息上传
     * @return 结果
     */
    @Override
    public int updateInfoUpload(InfoUpload infoUpload)
    {
        return infoUploadMapper.updateInfoUpload(infoUpload);
    }

    /**
     * 批量删除信息上传
     * 
     * @param ids 需要删除的信息上传主键
     * @return 结果
     */
    @Override
    public int deleteInfoUploadByIds(Long[] ids)
    {
        return infoUploadMapper.deleteInfoUploadByIds(ids);
    }

    /**
     * 删除信息上传信息
     * 
     * @param id 信息上传主键
     * @return 结果
     */
    @Override
    public int deleteInfoUploadById(Long id)
    {
        return infoUploadMapper.deleteInfoUploadById(id);
    }
}
